package com.gonsin.gview.logic.controller;

import com.gonsin.base.ResponseResult;
import com.gonsin.gview.annotations.model.BatchRequest;
import com.gonsin.gview.annotations.model.ConfirmRequest;
import com.gonsin.gview.annotations.model.FileRequest;
import com.gonsin.gview.logic.config.GViewMenuService;
import com.gonsin.gview.logic.model.DataPo;
import com.gonsin.gview.logic.model.DataRequest;
import com.gonsin.gview.logic.services.GFileServiceImpl;
import com.gonsin.gview.logic.services.GViewActionServiceImpl;
import com.gonsin.gview.logic.services.GViewCoreServiceImpl;
import com.gonsin.gview.logic.services.GViewDataServiceImpl;
import com.gonsin.gview.model.GViewModel;
import com.gonsin.gview.model.menu.GViewMenu;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.io.FilenameUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import springfox.documentation.annotations.ApiIgnore;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

@Controller
@ApiIgnore
@RequestMapping
public class GViewWebController {

    @ApiOperation("前端页面")
    @ApiIgnore
    @GetMapping({"/view", "/", ""})
    public void index(HttpServletResponse response) throws IOException {
        response.sendRedirect("/view/index.html");
    }

}
